<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <table id="userTable">
        <tr>
            <td>名字</td>
            <td>家乡</td>
            <td>工作城市</td>
            <td>工作</td>
            <td>座右铭</td>
        </tr>
    </table>
<script>
    const person= {
        name:'聂筠峰',
        hometown:'南昌',
        city:'深圳',
        job:'Web Developer',
        bio:'别人吃的是土,我咬的是金汤勺'
    }
// DOM html标签
    //js 通向html事件的编程 DOM
const tableELement = document.querySelector('#userTable');
//console.log(tableELement.innerHTML);
 tableELement.innerHTML += 
    `
    <tr>
        <td>${person.name}</td>
        <td>${person.hometown}</td>
        <td>${person.city}</td>
        <td>${person.job}</td>
        <td>${person.bio}</td>
    </tr>
    `
</script>

</body>
</html>